<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<h2>上传单个图片</h2>
<form action="/demo01/demo01" enctype="multipart/form-data" method="post">
    <input type="file" name="pic">
    <input type="submit">
</form>

<hr>
<h2>上传多个图片</h2>
<form action="/demo01/demo02" enctype="multipart/form-data" method="post">
    <input type="file" name="pics" multiple><!--选择多个multiple -->
    <input type="submit">
</form>